package com.haohe.wx.wechat;

/**
 * 接收消息与事件
 * @Title WeChartXml.java
 * @Description TODO
 * @author liming.zhao@haohedata.com
 * @date 2015-6-25 
 * @time 下午3:13:17
 */
public class WeChartXml {
	

	
	/**推送文本消息*/
	public static final String RECEIVE_TEXT_TPL = "<xml>" + "<ToUserName><![CDATA[%1$s]]></ToUserName>"
			+ "<FromUserName><![CDATA[%2$s]]></FromUserName>" + "<CreateTime>%3$s</CreateTime>"
			+ "<MsgType><![CDATA[%4$s]]></MsgType>" + "<Content><![CDATA[%5$s]]></Content>"
			+ "<FuncFlag>0</FuncFlag>" + "</xml>";
	

	/**点击菜单拉取消息,菜单跳转链接等事件推送 */
	public static final String RECEIVE_EVENT_TPL = "<xml><ToUserName><![CDATA[%1$s]]></ToUserName>" +
			"<FromUserName><![CDATA[%2$s]]></FromUserName><CreateTime>%3$s</CreateTime>" +
			"<MsgType><![CDATA[event]]></MsgType><Event><![CDATA[%4$s]]></Event>" +
			"<EventKey><![CDATA[%5$s]]></EventKey><AgentID>%6$s</AgentID></xml>";


	/**news消息*/
	public static final String RECEIVE_NEWS_TPL = "<xml>" + "<ToUserName><![CDATA[%1$s]]></ToUserName>"
			+ "<FromUserName><![CDATA[%2$s]]></FromUserName>" + "<CreateTime>%3$s</CreateTime>"
			+ "<MsgType><![CDATA[%4$s]]></MsgType>" + "<ArticleCount>%5$s</ArticleCount>"
			+ "<Articles>" + "%6$s" + "</Articles></xml>";

	public static final String RECEIVE_NEWS_ARTICLE_TPL = "<item><Title><![CDATA[title1]]></Title>" +
			"<Description><![CDATA[description1]]></Description><PicUrl><![CDATA[picurl]]></PicUrl>" +
			"<Url><![CDATA[url]]></Url></item>";

	/*******************************被动响应消息 end ************************************/

	
}
